// 设置jQuery Ajax全局的参数
$.ajaxSetup({
    // contentType:"application/x-www-form-urlencoded;charset=utf-8",
    complete:function(XMLHttpRequest,textStatus){
        var data = JSON.parse(XMLHttpRequest.responseText);
        if(data && data.statusCode) {
            switch (data.statusCode) {
                case 0:
                    alert("连接服务器异常");
                    break;
                case 403:
                    $.cookie("msg",data.resultMsg)
                    window.location.replace("/web/error.html");
                    break;
                case 500:
                    $.cookie("msg",data.resultMsg)
                    window.location.replace("/web/error.html");
                    break;
            }
        }
    }
});